package com.pay.h5.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pay.entity.Order;
import com.pay.h5.mapping.MappingUtils;
import com.pay.h5.service.PayService;
import com.pay.utils.ResponseData;

/**
 * 支付接口
 * @author Administrator
 *
 */
@Controller
public class PayController {

	@Autowired
	private PayService payService ;
	
	/**
	 * 下单网关
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value=MappingUtils.getway)
	public ResponseData getway(@RequestBody Order order) {
		return payService.doHandleGetway(order) ;
	}
	
}
